
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGLight.h>
#include <OpenSG/OSGLightBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Light_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Light()
{
    scope* osg_LightBase_scope = new scope(
    class_< osg::LightBase, bases< osg::NodeCore > , boost::noncopyable >("LightBase", no_init)
//        .def_readonly("AmbientFieldMask", &osg::LightBase::AmbientFieldMask)
//        .def_readonly("DiffuseFieldMask", &osg::LightBase::DiffuseFieldMask)
//        .def_readonly("SpecularFieldMask", &osg::LightBase::SpecularFieldMask)
//        .def_readonly("BeaconFieldMask", &osg::LightBase::BeaconFieldMask)
//        .def_readonly("OnFieldMask", &osg::LightBase::OnFieldMask)
//        .def_readonly("ConstantAttenuationFieldMask", &osg::LightBase::ConstantAttenuationFieldMask)
//        .def_readonly("LinearAttenuationFieldMask", &osg::LightBase::LinearAttenuationFieldMask)
//        .def_readonly("QuadraticAttenuationFieldMask", &osg::LightBase::QuadraticAttenuationFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::LightBase::MTInfluenceMask)
        .def("getClassType", &osg::LightBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::LightBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::LightBase::*)() )&osg::LightBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::LightBase::*)() const)&osg::LightBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::LightBase::getContainerSize)
        //.def("getAmbient", (osg::Color4f& (osg::LightBase::*)() )&osg::LightBase::getAmbient, return_value_policy< copy_const_reference >())
        .def("getAmbient", (const osg::Color4f& (osg::LightBase::*)() const)&osg::LightBase::getAmbient, return_value_policy< copy_const_reference >())
        //.def("getDiffuse", (osg::Color4f& (osg::LightBase::*)() )&osg::LightBase::getDiffuse, return_value_policy< copy_const_reference >())
        .def("getDiffuse", (const osg::Color4f& (osg::LightBase::*)() const)&osg::LightBase::getDiffuse, return_value_policy< copy_const_reference >())
        //.def("getSpecular", (osg::Color4f& (osg::LightBase::*)() )&osg::LightBase::getSpecular, return_value_policy< copy_const_reference >())
        .def("getSpecular", (const osg::Color4f& (osg::LightBase::*)() const)&osg::LightBase::getSpecular, return_value_policy< copy_const_reference >())
        //.def("getBeacon", (osg::NodePtr& (osg::LightBase::*)() )&osg::LightBase::getBeacon, return_value_policy< copy_const_reference >())
        .def("getBeacon", (const osg::NodePtr& (osg::LightBase::*)() const)&osg::LightBase::getBeacon, return_value_policy< copy_const_reference >())
        //.def("getOn", (bool& (osg::LightBase::*)() )&osg::LightBase::getOn, return_value_policy< copy_const_reference >())
        .def("getOn", (const bool& (osg::LightBase::*)() const)&osg::LightBase::getOn, return_value_policy< copy_const_reference >())
        //.def("getConstantAttenuation", (osg::Real32& (osg::LightBase::*)() )&osg::LightBase::getConstantAttenuation, return_value_policy< copy_const_reference >())
        .def("getConstantAttenuation", (const osg::Real32& (osg::LightBase::*)() const)&osg::LightBase::getConstantAttenuation, return_value_policy< copy_const_reference >())
        //.def("getLinearAttenuation", (osg::Real32& (osg::LightBase::*)() )&osg::LightBase::getLinearAttenuation, return_value_policy< copy_const_reference >())
        .def("getLinearAttenuation", (const osg::Real32& (osg::LightBase::*)() const)&osg::LightBase::getLinearAttenuation, return_value_policy< copy_const_reference >())
        //.def("getQuadraticAttenuation", (osg::Real32& (osg::LightBase::*)() )&osg::LightBase::getQuadraticAttenuation, return_value_policy< copy_const_reference >())
        .def("getQuadraticAttenuation", (const osg::Real32& (osg::LightBase::*)() const)&osg::LightBase::getQuadraticAttenuation, return_value_policy< copy_const_reference >())
        .def("setAmbient", &osg::LightBase::setAmbient)
        .def("setDiffuse", &osg::LightBase::setDiffuse)
        .def("setSpecular", &osg::LightBase::setSpecular)
        .def("setBeacon", &osg::LightBase::setBeacon)
        .def("setOn", &osg::LightBase::setOn)
        .def("setConstantAttenuation", &osg::LightBase::setConstantAttenuation)
        .def("setLinearAttenuation", &osg::LightBase::setLinearAttenuation)
        .def("setQuadraticAttenuation", &osg::LightBase::setQuadraticAttenuation)
        .def("getBinSize", &osg::LightBase::getBinSize)
        .def("copyToBin", &osg::LightBase::copyToBin)
        .def("copyFromBin", &osg::LightBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    );

    scope().attr("LinearAttenuationFieldId") = (int)osg::LightBase::LinearAttenuationFieldId;
    scope().attr("BeaconFieldId") = (int)osg::LightBase::BeaconFieldId;
    scope().attr("DiffuseFieldId") = (int)osg::LightBase::DiffuseFieldId;
    scope().attr("AmbientFieldId") = (int)osg::LightBase::AmbientFieldId;
    scope().attr("NextFieldId") = (int)osg::LightBase::NextFieldId;
    scope().attr("SpecularFieldId") = (int)osg::LightBase::SpecularFieldId;
    scope().attr("OnFieldId") = (int)osg::LightBase::OnFieldId;
    scope().attr("QuadraticAttenuationFieldId") = (int)osg::LightBase::QuadraticAttenuationFieldId;
    scope().attr("ConstantAttenuationFieldId") = (int)osg::LightBase::ConstantAttenuationFieldId;

    delete osg_LightBase_scope;

    class_< osg::Light, bases< osg::LightBase > , boost::noncopyable, osg::LightRefPtr >("Light", no_init)
        .def("setAmbient", (void (osg::Light::*)(osg::Real32, osg::Real32, osg::Real32, osg::Real32) )&osg::Light::setAmbient)
        .def("setDiffuse", (void (osg::Light::*)(osg::Real32, osg::Real32, osg::Real32, osg::Real32) )&osg::Light::setDiffuse)
        .def("setSpecular", (void (osg::Light::*)(osg::Real32, osg::Real32, osg::Real32, osg::Real32) )&osg::Light::setSpecular)
        .def("setAmbient", (void (osg::Light::*)(const osg::Color4f&) )&osg::Light::setAmbient)
        .def("setDiffuse", (void (osg::Light::*)(const osg::Color4f&) )&osg::Light::setDiffuse)
        .def("setSpecular", (void (osg::Light::*)(const osg::Color4f&) )&osg::Light::setSpecular)
        .def("getChunk", &osg::Light::getChunk)
        .def("makeChunk", &osg::Light::makeChunk)
        .def("changed", &osg::Light::changed)
        .def("dump", &osg::Light::dump, osg_Light_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::LightPtr>();
    implicitly_convertible<osg::LightRefPtr, osg::LightPtr>();
    implicitly_convertible<osg::LightPtr, osg::NodeCorePtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::LightPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::LightPtr>);
}

